﻿package net.event
{
	import flash.events.Event;
	
	/**
	* ...
	* @author cuiwei
	*/
	public class DNetworkGameEvent extends Event
	{
		
		
		/**
		 *收到房间总数 
		 */
		public static const ON_RECV_ALLROOM_NUMBER:String = "game_ON_RECV_ALLDESK_NUMBER";
		
		/**
		 * 收到当前桌子的玩家列表
		 */
		public static const ON_RECV_DESK_USERLIST:String = "game_ON_RECV_DESK_USERLIST";
		
		/**
		 * 收到当前房间列表改变
		 */
		public static const ON_RECV_CURPAGEROOM_CHANGED:String = "game_ON_RECV_CURPAGEROOM_CHANGED";
	
		/**
		 * 收到无法进入房间
		 */
		public static const ON_RECV_CAN_NOT_TOROOM:String = "game_ON_RECV_CAN_NOT_TOROOM";
		
		/**
		 * 收到服务器的错误信息
		 */
		public static const ON_RECV_SERVER_ERROR:String = "game_ON_RECV_SERVER_ERROR";
		
		/**
		 * 收到服务器拒绝登录
		 */
		public static const ON_RECV_RESTRICT_LOGIN:String = "game_ON_RECV_RESTRICT_LOGIN";
		
		/**
		 * 收到学习教程奖励成功
		 */
		public static const ON_RECV_STUDY_PRIZE:String = "game_ON_RECV_STUDY_PRIZE";
		
		/**
		 * gm kick
		 */
		public static const ON_RECV_GM_KICK:String = "game_ON_RECV_GM_KICK";
		
		/**
		 * get online population
		 */
		public static const ON_RECV_ONLINE_SERVER:String = "game_ON_RECV_ONLINE_SERVER";
		
	
		/**
		* 收到服务器刷钱
		*/
		public static const ON_RECV_UPDATE_GOLD:String = "ON_RECV_UPDATE_GOLD";	
		/**
		* 收到服务器刷桌面钱
		*/
		public static const ON_RECV_CHANGE_GOLD:String = "ON_RECV_CHANGE_GOLD";	
		
		/**
		 * 收到钱不够了
		 */
		public static const ON_RECV_LOW_GOLD:String = "ON_RECV_LOW_GOLD";	
		/**
		 * 收到游戏相关信息[大厅]
		 */
		public static const ON_RECV_USER_HALL_GAMEINFO:String = "ON_RECV_USER_HALL_GAMEINFO";	
		/**
		 * 收到游戏相关信息[游戏]
		 */
		public static const ON_RECV_USER_GAME_GAMEINFO:String = "ON_RECV_USER_GAME_GAMEINFO";			
		
		public static const ON_RECV_SITDOWN_RESULT:String = "ON_RECV_SITDOWN_RESULT";
		/**
		 * 收到观战失败
		 */
		public static const ON_RECV_WATCH_ERROR:String = "ON_RECV_WATCH_ERROR";
		/**
		 * 申请加好友
		 */
		public static const ON_RECV_REQUEST_ADD_FRIEND:String = "ON_RECV_REQUEST_ADD_FRIEND";
		
		/**
		 * 收到个人信息
		 */
		public static const ON_RECV_MY_INFO:String = "hall_ON_RECV_MY_INFO";	
		
		/**
		 * 收到组分区信息
		 */
		public static const ON_RECV_GROUP_INFO:String = "hall_ON_RECV_GROUP_INFO";	
		/**
		 * 好友改变
		 */
		public static const ON_FRIEND_CHANGE:String = "ON_FRIEND_CHANGE";
		
		/**
		 * 用户列表排名
		 */
		public static const ON_RECV_SORT_LIST:String = "ON_RECV_SORT_LIST";
		
		/**
		 * 积分结算
		 */
		public static const ON_INTEGRAL_JIESUAN:String = "ON_INTEGRAL_JIESUAN";
		
		/**
		 * 激活头像结果
		 */
		public static const ON_RECV_ACTIVE_FACE:String = "ON_RECV_ACTIVE_FACE"; 
		
		//更换头像OK
		public static const ON_CHANGE_FACE_OK:String = "ON_CHANGE_FACE_OK"; 
		public static const ON_STAND_UP_RESULT:String = "ON_STAND_UP_RESULT"; 
		
		
		public static const ON_RECV_TOUR_ADDPOINT_RESULT:String = "ON_RECV_TOUR_ADDPOINT_RESULT"; 
		
		//收到选头像结果
		public static const ON_RECV_SELECT_FACE_OK:String = "ON_RECV_SELECT_FACE_OK"; 
		public static const ON_RECV_SELECT_FACE_DHOME_OK:String = "ON_RECV_SELECT_FACE_DHOME_OK"; 
		
		
		public static const ON_RECV_USER_ADD:String = "ON_RECV_USER_ADD"; 
		public static const ON_RECV_USER_DEL:String = "ON_RECV_USER_DEL"; 
		
		public static const ON_TEX_USER_SB_INFO:String = "ON_TEX_USER_SB_INFO";
		public static const ON_TEX_SET_SB_PASSWORD:String = "ON_TEX_SET_SB_PASSWORD";
		public static const ON_TEX_SAVE_OR_TAKE_SB_GOLD:String = "ON_TEX_SAVE_OR_TAKE_SB_GOLD";
		public static const ON_TEX_TAKE_SB_GOLD_PW_ERROR:String = "ON_TEX_TAKE_SB_GOLD_PW_ERROR";
		public static const ON_TEX_RECV_BBS_URL:String = "ON_TEX_RECV_BBS_URL";
		
		public static const ON_TEX_LOGIN_SHOW_DAY_GOLD:String = "ON_TEX_LOGIN_SHOW_DAY_GOLD";
		public static const ON_TEX_RECV_LOGIN_GIVE:String = "ON_TEX_RECV_LOGIN_GIVE";
		
		public static const ON_TEX_RECV_FEEDBACK_CAN_USE:String = "ON_TEX_RECV_FEEDBACK_CAN_USE";
		
		//收到显示充值面板
		public static const ON_TEX_RECV_SHOW_CHONGZHI:String = "ON_TEX_RECV_SHOW_CHONGZHI";
		//收到特权码验证
		public static const ON_TEX_RECV_PRIVILEGE_CHECK:String = "ON_TEX_RECV_PRIVILEGE_CHECK";
		//收到显示角色选择面板
		public static const ON_RECV_CHOOSE_SHOW:String = "ON_RECV_CHOOSE_SHOW";
		//收到更新用户昵称结果
		public static const ON_RECV_UPDATE_NICK_INFO:String = "ON_RECV_UPDATE_NICK_INFO";
		//收到小喇叭剩余次数
		public static const ON_RECV_SPEAKER_NUM:String = "ON_RECV_SPEAKER_NUM";
		//收到广播
		public static const ON_RECV_SPEAKER_BROADCAST:String = "ON_RECV_SPEAKER_BROADCAST";
		//收到是否弹出“异地上线保护”窗口
		public static const ON_RECV_CHECK_IP:String = "ON_RECV_CHECK_IP";
		//收到解锁是否成功
		public static const ON_RECV_UNLOCK:String = "ON_RECV_UNLOCK";
		//收到游戏设置
		public static const ON_RECV_TXPERSZ:String = "ON_RECV_TXPERSZ";
		//收到牌样设置
		//public static const ON_RECV_TXPAYSZ:String = "ON_RECV_TXPAYSZ";
		//收到更新道具数量
		public static const ON_RECV_REFRESH_PROPS_COUNT:String = "ON_RECV_REFRESH_PROPS_COUNT";
		
		private var m_data:Array = null;
		
		/**
		 * 注册事件
		 * @param	szMsg
		 * @param	data
		 */
		public function DNetworkGameEvent(szMsg:String, data:Array)
		{
			this.m_data = data;
			super(szMsg);
            return;
		}
		public function get data():Array { return m_data; }
	}
	
}